package dao;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class Config {
	private Properties config=new Properties();
	public Config(String file) throws IOException{
		FileInputStream fis=new FileInputStream(file);
		config.load(fis);
	}
	public String getString(String key){
		return config.getProperty(key);
	}
	public int getInt(String key){
		return Integer.parseInt(getString(key));
	}
	public double getDouble(String key){
		return Double.parseDouble(getString(key));
	}
	
}
